public class MathProblem {
    private String problem;
    private int answer;

    public MathProblem(String problem, int answer) {
        this.problem = problem;
        this.answer = answer;
    }

    public String getProblem() { return problem; }
    public int getAnswer() { return answer; }

    @Override
    public String toString() {
        return problem + " " + answer;
    }
}
